package example.com.nexd.collectionsdk.sdk.collector.bean;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * WifiDataResult create by codingfish at 15/4/29
 * TODO:
 *
 * @Version V1.0
 */
public class WifiDataResult implements Parcelable {


    private String id;//scan id
    private String ssid;//wifi name
    private String bssid;//mac
    private String capability;//加密信息
    private int level;//wifi level
    private int frequency;//wifi frequency
    private long timestamp;//扫描时间
    private int singleIntensity;//信号强度
    private String userId;//用户 ID

    public WifiDataResult() {
    }

    public WifiDataResult(Parcel source) {
        ssid = source.readString();
        id = source.readString();
        bssid = source.readString();
        capability = source.readString();
        level = source.readInt();
        frequency = source.readInt();
        timestamp = source.readLong();
        singleIntensity = source.readInt();
        userId = source.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ssid);
        dest.writeString(id);
        dest.writeString(bssid);
        dest.writeString(capability);
        dest.writeInt(level);
        dest.writeInt(frequency);
        dest.writeLong(timestamp);
        dest.writeInt(singleIntensity);
        dest.writeString(userId);
    }

    public static final Creator<WifiDataResult> CREATOR = new Creator<WifiDataResult>() {
        @Override
        public WifiDataResult createFromParcel(Parcel source) {
            return new WifiDataResult(source);
        }

        @Override
        public WifiDataResult[] newArray(int size) {
            return new WifiDataResult[size];
        }
    };

    public String getSsid() {
        return ssid;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBssid() {
        return bssid;
    }

    public void setBssid(String bssid) {
        this.bssid = bssid;
    }

    public String getCapability() {
        return capability;
    }

    public void setCapability(String capability) {
        this.capability = capability;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public int getSingleIntensity() {
        return singleIntensity;
    }

    public void setSingleIntensity(int singleIntensity) {
        this.singleIntensity = singleIntensity;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
